package com.neusoft.demo8;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

public class Test {
//    public void m1(List list) {
//
//    }

    public static void main(String[] args) {
        Frame frame = new Frame();
        frame.setTitle("windows");
        frame.setSize(800, 600);
        Button button = new Button("button");
        button.addActionListener(new ActionListerenImpl());
        frame.add(button);//将按钮添加到窗口中
        frame.setVisible(true);

    }
}
